package com.example.demo.context;

import org.springframework.http.HttpCookie;
import org.springframework.http.HttpHeaders;
import org.springframework.util.MultiValueMap;

/**
 * @author sleepforests
 * Created on 2019-07-18
 */
public class GatewayContext {

    public static final String GATEWAY_CONTEXT_KEY = "_GatewayContext_";


    private MultiValueMap<String, String> queryParams;

    private HttpHeaders httpHeaders;

    private MultiValueMap<String, HttpCookie> cookies;

    private MultiValueMap<String, String> formData;

    private String requestBody;

    public MultiValueMap<String, String> getQueryParams() {
        return queryParams;
    }

    public void setQueryParams(MultiValueMap<String, String> queryParams) {
        this.queryParams = queryParams;
    }

    public HttpHeaders getHttpHeaders() {
        return httpHeaders;
    }

    public void setHttpHeaders(HttpHeaders httpHeaders) {
        this.httpHeaders = httpHeaders;
    }

    public MultiValueMap<String, HttpCookie> getCookies() {
        return cookies;
    }

    public void setCookies(MultiValueMap<String, HttpCookie> cookies) {
        this.cookies = cookies;
    }

    public MultiValueMap<String, String> getFormData() {
        return formData;
    }

    public void setFormData(MultiValueMap<String, String> formData) {
        this.formData = formData;
    }

    public String getRequestBody() {
        return requestBody;
    }

    public void setRequestBody(String requestBody) {
        this.requestBody = requestBody;
    }
}
